
package Servidor;
import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;


//hola

public class Servidor {
    public Servidor() throws RemoteException, MalformedURLException, AlreadyBoundException 
    { 
        UsuarioRemoto u1= new UsuarioRemoto();
        Naming.rebind("//127.0.0.1/usuario1", u1);
        System.out.println("El servidor esta corriendo!"); 
    }
    
}

